<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>history</title>
</head>
<body>
<br/>
<font size="7">History...</font>
<br/><br/>
<form action="/history.action">
    <input type="hidden" name="userId" value="${userId}">
    <font size="4">按时间搜索：</font>
    <input type="text" name="date"/>
    <input type="submit" value="搜索"/>
</form>
<br/><br/>
<table width="1050px" height="350px" border="1px" cellpadding="0px" cellspacing="0px">
    <tr align="center">
        <td width="150px" height="50px">时间</td>
        <td width="150px" height="50px">地区</td>
        <td width="150px" height="50px">温度</td>
        <td width="150px" height="50px">湿度</td>
        <td width="150px" height="50px">风</td>
        <td width="150px" height="50px">提示</td>
        <td width="150px" height="50px">Delete</td>
        <td width="150px" height="50px">Alter</td>
    </tr>

    <c:forEach var="item" items="${list}">
        <tr align="center">
            <td width="150px" height="50px">${item.date}</td>
            <td width="150px" height="50px">${item.city}</td>
            <td width="150px" height="50px">${item.wendu}</td>
            <td width="150px" height="50px">${item.shidu}</td>
            <td width="150px" height="50px">${item.feng}</td>
            <td width="150px" height="50px">${item.notice}</td>
            <td width="150px" height="50px"><a href="/del.action?id=${item.id}">Delete</a></td>
            <td width="150px" height="50px"><a href="/alter.action?id=${item.id}">Alter</a></td>
        </tr>
    </c:forEach>


</table>
</body>
</html>
